package 设计模式.observer;

public class Client {
    public static void main(String[] args) {
        WeatherData weatherData=new WeatherData();
        CurrentConditions currentConditions=new CurrentConditions();
        weatherData.registerObserver(currentConditions);
        Baidu baidu=new Baidu();
        weatherData.registerObserver(baidu);
        System.out.println("通知");
        weatherData.setData(10,103,100);
    }
}
